package com.tedu.ivos.base.exception;

import com.tedu.ivos.base.response.StatusCode;
import lombok.Getter;

//自定义的业务层异常类
public class ServiceException extends  RuntimeException {
    @Getter
    private StatusCode statusCode;

    //Alt+Insert 一直回车 快捷生成构造方法
    public ServiceException(StatusCode statusCode) {
        this.statusCode = statusCode;
    }
}
